<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>Vue.js的方法选项</title>
	</head>
	<body>
		<div id="app">{{say()}} ，{{msg}}</div>
		<script src="../js/vue.js"></script>
		<script type="text/javascript">
			//1、创建vue实例
			var vm = new Vue({
				el: '#app',
				data: { 
					name: '中慧科技',
					age: 30,
					msg: '欢迎你!'

				},
				methods: {
					say: function() {
						return "你好," + this.name
					}
				}
			});
		</script>

	</body>
</html>
